package mirrormonkey.rpc.tools.entities;

import mirrormonkey.core.annotations.ClientSideConstructor;
import mirrormonkey.core.annotations.EntityHierarchy;
import mirrormonkey.framework.entity.EntityData;
import mirrormonkey.framework.entity.SyncEntity;

import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;

@EntityHierarchy
public class SyncBox extends Geometry implements SyncEntity {

	private EntityData data;

	@ClientSideConstructor
	public SyncBox(Vector3f pos) {
		super("Box", new Box(pos, 0.5f, 0.5f, 0.5f));
	}

	@Override
	public void setData(EntityData data) {
		this.data = data;
	}

	@Override
	public EntityData getData() {
		return data;
	}

}
